          //table
			var serverData = {};
			    var serverTable;
			    jQuery(document).ready(function () {
			        serverTable = jQuery('#dataTable').DataTable({
			            "serverSide": true,
			            "ordering": false,
			            "ajax": {
			                "dataType": "json",
			                "type": "get",
			                "cache": false,
			                "url":window.rootPath+ '/ui/inventoryDetail/getpage',
			                "data": function (d) {
			                    return $.extend({}, d, serverData);
			                }
			            },
			            columns: [
			                {
			                	data: null,
			                	defaultContent: ""
			                },
			                {
			                    data: null,
			                    defaultContent: "",
			                    render: function (data, type, full, meta) {
			                        var operate =' <input type="checkbox" class="minimal-red myCheckbox" />';
			                        return operate;

			                    }
			                },
			                {
			                    data: 'figureNum'
			                },
			                {
			                    data: 'name'
			                },
			                {
			                    data: 'material'
			                },
			                {
			                	data: 'number'
			                }
			                ],
			            "drawCallback": function (oSettings) {
			                var k = 0;
			                var total = oSettings.aiDisplay.length + oSettings._iDisplayStart;
			                for (var i = oSettings._iDisplayStart, iLen = total; i < iLen; i++) {
			                    $('td:eq(0)', oSettings.aoData[oSettings.aiDisplay[k]].nTr).text(i + 1);
			                    k++;
			                }

			                serverTable.off('click', 'tr');
			                serverTable.on('click', 'tr', function (event) {
			                    event = event || window.event;
			                    var target = event.target || event.scrElement;
			                    var data = serverTable.row(this).data();
//			
//			                    if (target.className.indexOf('fa-pencil') != -1 || target.className.indexOf('editBtn') != -1) {
//			            			
//			                        editCustomer(data);
//			                    }
//			                    if (target.className.indexOf('fa-remove') != -1 || target.className.indexOf('delete') != -1) {
//			
//			                        deleteMain(data);
//			                    }
			                 
			                    return;
			                });
			            }
			        });

			    });
			    
			    //查询
			    jQuery(".searchBtn").on('click',function(){
			    	serverData.key=jQuery("#keyword").val();
			    	serverTable.draw();
			    });
			    
			    //撤消
			    jQuery(".resetBtn").on('click',function(){
			    	jQuery("#keyword").val('');
			    	serverData.key='';
			    	serverTable.draw();
			    });
			    
			